package app.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/***
 * 记录微信扫描的数据类型
 * 
 * @author Denny
 * 
 */
public class ScanRecord {

	private String mcid;// 扫描到的机器码
	private String openId;// 微信openId
	private Date scandate;// 扫描时间

	public ScanRecord() {

	}

	public ScanRecord(String mcid, String openId, Date scandate) {
		this.mcid = mcid;
		this.openId = openId;
		this.scandate = scandate;
	}

	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
		return "ScanRecord=" + "mcid=" + mcid + ",openId=" + openId
				+ ",scandate=" + sdf.format(scandate);
	}

	public String getMcid() {
		return mcid;
	}

	public void setMcid(String mcid) {
		this.mcid = mcid;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Date getScandate() {
		return scandate;
	}

	public void setScandate(Date scandate) {
		this.scandate = scandate;
	}

}
